package model.util;

public class Box3D extends Object3D {

    /** Constructeurs */
    public Box3D(Vector3D boxSize)
    { this(new Shape3D(boxSize)); }

    public Box3D(Shape3D shape3d)
    { this(shape3d, null); }
    
    public Box3D(Shape3D shape3d, Vector3D position)
    { super(shape3d, position); }

    /** Type internes */
    public static class Shape3D extends Object3D.Shape3D {
    
        /** Constructeurs */
        public Shape3D(Vector3D boxSize)
        { super(boxSize, boxSize.divide(2.0)); }

        /** Accesseurs */
        public Vector3D getSize() { return getWrapSize(); }
    }
}